
import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) {

        /*
        目前只输出最大值，double,float等数值类型不多写
         */

        //比较String
        String string1="absgdui";
        String string2="xshuagdiu";
        ResponseVO responseVO=new ResponseVO(string1,string2);
        System.out.println("string1:"+string1+",string2:"+string2);
        System.out.println(responseVO.toString());
        //System.out.println("max=:"+responseVO.getMax());
        System.out.println("--------------------------------------");

        //比较int
        int a=2;
        int b=3;
        ResponseVO responseVO1=new ResponseVO(a,b);
        System.out.println("a="+a+",b="+b);
        System.out.println(responseVO1.toString());
        //System.out.println("max=:"+responseVO1.getMax());
        System.out.println("--------------------------------------");
     //   System.out.println("max="+responseVO.getMax());


        //list<Inter>
        List<Integer> list=new ArrayList<>();
        list.add(10);
        list.add(20);
        ResponseVO responseVO2=new ResponseVO(list.get(0),list.get(1));
        System.out.println("list[0]:"+list.get(0)+",list[1]:"+list.get(1));
        System.out.println(responseVO2.toString());
     //   System.out.println("max:"+responseVO2.getMax());
        System.out.println("--------------------------------------");
     //   System.out.println("max="+responseVO.getMax(list.get(0),list.get(1)));

        //list<String>
        List<String> list1=new ArrayList<>();
        list1.add("bxhugdu");
        list1.add("nijbcdiuq");
        ResponseVO responseVO3=new ResponseVO(list1.get(0),list1.get(1));
        System.out.println("list[0]:"+list1.get(0)+",list[1]:"+list1.get(1));
        System.out.println(responseVO3.toString());
        //System.out.println("max=:"+responseVO3.getMax());
        System.out.println("--------------------------------------");

        /*
        自定义对象
        1.对象之间不可以直接比较，必须直接指定某个数据
         */

        Stu stu1=new Stu("张三",15,"201713138001");
        Stu stu2=new Stu("李四",15,"201713138005");

        ResponseVO responseVO4=new ResponseVO(stu1.getID(),stu2.getID());
        System.out.println(stu1.toString());
        System.out.println(stu2.toString());
        System.out.println(responseVO4.toString());
        //System.out.println("max=:"+responseVO4.getMax());
        System.out.println("--------------------------------------");
    }
}
